🆕 API SDKs

Generate PDF documents in your favorite language

Generate From

Node.js

Call the DocuGenerate API from your Node.js application to create PDF and Word documents from your templates. It fits right into an Express route or a serverless function.

Code Examples

Follow the Node.js SDK guide with ready-to-use examples for every API method.

Requirements

Node.js 20 or later, which provides fetch, FormData and Blob globally.

Node.js code generating a PDF document from a Word template with the DocuGenerate API
Generate From

Python

Generate PDF and Word documents in Python, with just a few lines of code. Perfect for Django or Flask apps, and for scripts that turn database rows or spreadsheets into documents.

Code Examples

Follow the Python SDK guide with ready-to-use examples for every API method.

Requirements

Python 3.9 or later and the requests library, installed with pip install requests.

Python code generating a PDF document from a Word template with the DocuGenerate API
Generate From

PHP

Create PDF documents from Word templates directly from your PHP application. Generate invoices or contracts from Laravel, Symfony or WordPress, and run the same code on almost any PHP host.

Code Examples

Follow the PHP SDK guide with ready-to-use examples for every API method.

Requirements

PHP 8.1 or later with the cURL extension enabled for making HTTP requests.

PHP code generating a PDF document from a Word template with the DocuGenerate API
Generate From

Ruby

Generate documents from your Word templates in Ruby using only the standard library. It fits naturally into a Rails app, whether you call the API from a controller action or a background job.

Code Examples

Follow the Ruby SDK guide with ready-to-use examples for every API method.

Requirements

Ruby 3.0 or later. No gems needed, as net/http and json are part of the standard library.

Ruby code generating a PDF document from a Word template with the DocuGenerate API
Generate From

Go

Call the DocuGenerate API from your Go services and generate PDF documents from your Word templates. Use goroutines to generate many documents in parallel, and ship everything in a single binary.

Code Examples

Follow the Go SDK guide with ready-to-use examples for every API method.

Requirements

Go 1.18 or later. No modules to add, as net/http comes from the standard library.

Go code generating a PDF document from a Word template with the DocuGenerate API
Generate From

C#

Generate PDF documents from your Word templates in your .NET applications. Call the API from ASP.NET Core, Azure Functions or desktop apps, with async methods end to end.

Code Examples

Follow the C# SDK guide with ready-to-use examples for every API method.

Requirements

.NET 8 or later. No NuGet packages needed, since HttpClient is built into .NET.

C# code generating a PDF document from a Word template with the DocuGenerate API
Generate From

Rust

Create PDF documents from Word templates in Rust. Add document generation to your Axum or Actix Web services, command-line tools and background workers, keeping the code short and type-safe.

Code Examples

Follow the Rust SDK guide with ready-to-use examples for every API method.

Requirements

Rust 1.85 or later, with the reqwest and serde_json crates added with cargo add.

Rust code generating a PDF document from a Word template with the DocuGenerate API
Generate From

Java

Generate PDF documents from your Word templates in Java, with a simple API call. It works in Spring Boot services and any other JVM application, from web backends to batch jobs.

Code Examples

Follow the Java SDK guide with ready-to-use examples for every API method.

Requirements

Java 11 or later, for the built-in HttpClient, and the jackson-databind library for JSON.

Java code generating a PDF document from a Word template with the DocuGenerate API